import Cookies from 'js-cookie'

const inFifteenMinutes = new Date(new Date().getTime() + 120 * 60 * 1000);

export function getValue(key) {
  return Cookies.get(key);
}

export function setValue(key, value) {
  return setExpValue(key, value, inFifteenMinutes);
}

export function setExpValue(key, value, expTime) {
  return Cookies.set(key, value, { expires: expTime })
}

export function remove(key) {
  return Cookies.remove(key);
}
